#include<stdio.h>
#include<string.h>
int main()
{
	char names[5][30];
	strcpy(names[0],"zhang1");
	strcpy(names[1],"zhangsan");
	strcpy(names[2],"zhang san");
	strcpy(names[3],"lisi");
	strcpy(names[4],"liqi");
	char in[30];
	gets(in);
	int t=0,i;
	for(i=0;i<=4;i++)
	{
		if(strcmp(in,names[i])==0)printf("%d",i);
		else t++;
	}
	if(t==5)printf("no");
	return 0;
} 
